<%--
  Created by IntelliJ IDEA.
  User: DE
  Date: 2019/4/9
  Time: 17:47
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>发布订单</title>
    <link href="<%=basePath%>resources/layui/css/layui.css" rel="stylesheet"></link>
    <link href="<%=basePath%>resources/css/style.css" rel="stylesheet"></link>
    <style>
        .layui-fixbar{
            width: 40px;
        }

    </style>

</head>
<body>
<!-- layout admin -->
<div class="layui-layout layui-layout-admin"> <!-- 添加skin-1类可手动修改主题为纯白，添加skin-2类可手动修改主题为蓝白 -->
    <!-- header -->
    <div class="layui-header my-header">
        <a href="<c:if test="${user.usertype==1}"><%=basePath%>order/orderlist</c:if><c:if test="${user.usertype==0}"><%=basePath%>page/manager/orderManager</c:if>">
            <!--<img class="my-header-logo" src="" alt="logo">-->
            <div class="my-header-logo">校园便捷服务平台</div>
        </a>


        <!-- 顶部右侧添加选项卡监听 -->
        <ul class="layui-nav my-header-user-nav" lay-filter="side-top-right">
            <li class="layui-nav-item"><span id="datetime"></span>&nbsp;</li>
            <li class="layui-nav-item">
                <a href="<c:if test="${user.usertype==1}"><%=basePath%>order/orderlist</c:if><c:if test="${user.usertype==0}"><%=basePath%>page/manager/orderManager</c:if>">主页</a>
            </li>
            <li class="layui-nav-item">
                <a href="<%=basePath%>order/acceptOrderlist">我的订单<!--<span class="layui-badge">9</span>--></a>
            </li>
            <li class="layui-nav-item">
                <a href="<%=basePath%>page/user/personalCenter">个人中心<!--<span class="layui-badge-dot"></span>--></a>
            </li>
            <li class="layui-nav-item">
                <a href="<%=basePath%>page/user/personalCenter"><c:if test="${user.userimg!=null}"><img src="<%=basePath%>${user.userimg}" class="layui-nav-img"></c:if>${user.username}</a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" onclick="logout()">退出系统</a></dd>
                </dl>
            </li>
        </ul>
        <div class="layui-side my-side">
            <div class="layui-side-scroll">
                <!-- 左侧主菜单添加选项卡监听 -->
                <ul class="layui-nav layui-nav-tree layui-bg-black"  lay-filter="test">
                    <li class="layui-nav-item layui-nav-itemed">
                        <a  href="<%=basePath%>order/acceptOrderlist">已接受订单</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="<%=basePath%>order/finishOrderlist">已完成订单</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="<%=basePath%>order/releaseOrderlist">已发布订单</a>
                    </li>
                    <li class="layui-nav-item layui-this"><a href="<%=basePath%>page/user/releaseOrder">发布订单</a></li>
                </ul>


            </div>
        </div>
    </div>


    <!-- body -->
    <div class="layui-body my-body"  style="background-color: #F6F6F6">
        <div class="layui-tab-content">
            <form class="layui-form" action="<%=basePath%>order/releaseOrder">
                <div class="layui-form-item 2layui-col-xs12 layui-col-md12">
                    <label class="layui-form-label">标题</label>
                    <div class="layui-input-inline">
                        <input type="text" name="orderTitle" autocomplete="off" placeholder="请输入标题" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item layui-col-xs12 layui-col-md12">
                    <label class="layui-form-label">内容</label>
                    <div class="layui-input-inline">
                        <textarea placeholder="请输入内容" class="layui-textarea" name="orderBody"></textarea>
                    </div>
                </div>

                <div class="layui-form-item layui-col-xs12 layui-col-md12">
                    <label class="layui-form-label">金额</label>
                    <div class="layui-input-inline">
                        <input placeholder="请输入金额"  lay-verify="number" class="layui-input" type="text" name="payMoney">
                    </div>
                </div>


                <div class="layui-form-item layui-col-xs12 layui-col-md12">

                    <div class="layui-col-md12 layui-col-md-offset1">
                        <button class="layui-btn" lay-submit="" lay-filter="userSubmit">立即发布</button>

                    </div>
                </div>


            </form>




        </div>


    </div>

</div>
<!-- 右键菜单 -->
<div class="my-dblclick-box none">
    <table class="layui-tab dblclick-tab">
        <tr class="card-refresh">
            <td><i class="layui-icon">&#x1002;</i>刷新当前标签</td>
        </tr>
        <tr class="card-close">
            <td><i class="layui-icon">&#x1006;</i>关闭当前标签</td>
        </tr>
        <tr class="card-close-all">
            <td><i class="layui-icon">&#x1006;</i>关闭所有标签</td>
        </tr>
    </table>
</div>
 <script type="text/javascript" src="<%=basePath%>resources/jquery-3.2.1/jquery-3.2.1.js" ></script>
 <script src="<%=basePath%>resources/layui/layui.js"></script>
 <script src="<%=basePath%>resources/js/vip_comm.js"></script>
 <script src="<%=basePath%>resources/js/functionList.js"></script>
 <script type="text/javascript">
     layui.use(['form', 'layer', 'rate', 'laydate'], function () {        // 操作对象
         var layer = layui.layer;
         var element = layui.element;
         var laydate = layui.laydate;
         var form = layui.form;
         var rate = layui.rate;
         var $ = layui.jquery;
         var createTime = laydate.render({
             type: 'date',
             elem: '#createTime',//选择器结束时间
             /* min: "2018-11-01",//设置min默认最小值*/
         });


         var userBirth = laydate.render({
             type: 'date',
             elem: '#userBirth',//选择器结束时间
         });


     });


    /**
     * 显示时间
     * */
     writeDateInfo();


 </script>

</body>
</html>
